package edu.buu.refectory.constant;

/**
 * 系统常量类
 */
public interface Const {
	
	public String SUCCESS = "success";
	public String ERROR_MESSAGE = "errorMessage";
	
	public String UNKOWN_EXCEPTION = "unknown exception";
	public String QUERY_EXCEPTION = "query exception";
	public String CREATE_EXCEPTION = "create exception";
	public String UPDATE_EXCEPTION = "update exception";
	public String DELETE_EXCEPTION = "delete exception";
	
	public String PAGE_SIZE = "pageSize";
	
	public String SERVICE_PROCESS_ACTION_REAPPLY = "reApply";
	
	public String WF_TASK_DEFINITION_KEY_PUBLISH_AUDIT="auditService";
	public String WF_TASK_DEFINITION_KEY_SUBSCRIBE_AUDIT="auditSubscribe";
	
	
	/**
	 * all workflow status
	 * 这里的状态和流程图中的task节点没有直接的对应关系，部分对应前台menu，剩余的只是后台使用
	 */
	
	//****前后对应状态
	//已发布
	public String WF_STATUS_PUBLISHED = "1";
	//发布流程待办理
	public String WF_STATUS_PUBLISH_WF_TODO = "4";
	//审核中
	public String WF_STATUS_PUBLISH_WF_AUDITING = "6";
	//未发布
	public String WF_STATUS_NON_PUBLISHED = "7";
	//待审核
	public String WF_STATUS_PUBLISH_WF_TODO_AUDIT = "8";
	//订阅中
	public String WF_STATUS_PUBLISH_WF_SUBSCRIBING = "9";
	//已订阅
	public String WF_STATUS_SUBSCRIBED = "10";
	//订阅流程待办理
	public String WF_STATUS_SUBSCRIBE_WF_TODO = "11";
	
	//******后台使用状态
	//发布流程已启动
	public String WF_STATUS_PUBLISH_WF_STARTED = "2";
	//放弃发布
	public String WF_STATUS_PUBLISH_WF_GIVEUP = "3";
	//处理中
	public String WF_STATUS_PROCESSING = "5";
	
	
	
	
	
	// 变量名, 用于存储流程的启动者id
	public final String PROCESS_STARTER = "applyUserId";
	
	public final int EXCEPTION_ERROR_CODE=500;
	
	
	//流程的类型
	public String WF_PUBLISH = "1";//发布流程
	public String PROCESS_DEFINITION_KEY_PUBLISH = "service-publish";
    
	public String WF_SUBSCRIBE = "2";//订阅流程
	public String PROCESS_DEFINITION_KEY_SUBSCRIBE = "service-subscribe";
	public String WF_CHANGE = "3";//变更流程
	public String PROCESS_DEFINITION_KEY_CHANGE = "service-change";
	//已处理
    public String WF_STATUS_DONE = "1";
    //待办理
    public String WF_STATUS_TODO = "2";
    //审核中
    public String WF_STATUS_DOING = "3";
    //未发布
    public String WF_STATUS_UNDO = "4";
    //待审核
    public String WF_STATUS_TODO_AUDIT = "5";
	
	
}